package GUI;

import javax.swing.*;
import javax.swing.border.Border;

public class SimulareDesenPanel {

	JPanel panel;
	public static JTextArea textdesen;

	public JPanel SimulareDesenPanelConstr(JPanel pan) {
		panel=pan;
		
		textdesen = new JTextArea();
		Border border = BorderFactory.createRaisedBevelBorder();
		Border borderTextArea =BorderFactory.createTitledBorder(border, "");
		textdesen.setBorder(borderTextArea);
		
		Border borderScroll = BorderFactory.createLoweredBevelBorder();
		Border borderScrollfact =BorderFactory.createTitledBorder(borderScroll, "Simulare desen :");
		JScrollPane scrolltxt = new JScrollPane(textdesen);
		scrolltxt.setBorder(borderScrollfact);
		scrolltxt.setBounds(300, 10, 400, 400);
		panel.add(scrolltxt);
		
		return panel;

	}
	
	public static void clearDesen(){
		textdesen.setText("");
	}

}
